package com.katze.common.tree;

import java.io.Serializable;
import java.util.List;

/**
 * 说  明：通用的树形节点数据对象
 * 作  者：zf.zeng
 * 日  期：2020-12-03 (星期四)
 **/
public class TreeNode extends Node {

    private static final long serialVersionUID = -3244128765576934031L;

    public TreeNode(){}

    public TreeNode(String name){
        super(null, null, name);
    }

    public TreeNode(Serializable id, String name){
        super(id, null, name);
    }

    public TreeNode(Serializable id, String name, List<TreeNode> children){
        super(id, null, name);
        addChildren(children);
    }

    public TreeNode(Serializable id, Serializable pid, String name){
        super(id, pid, name);
    }


}
